package com.leo.persistence.sqlSession;

import com.leo.persistence.pojo.Configuration;
import com.leo.persistence.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    <E> List<E> executeQuery(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int executeUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
}
